import { Component, OnInit } from '@angular/core';
declare var $: any;
@Component( {
    selector: 'app-hello',
    templateUrl: './hello.component.html',
    styleUrls: ['./hello.component.css']
} )
export class HelloComponent implements OnInit {
    picPath='../../assets/qq.png';
    val='blue';
    os=[1,2,3,4];
    constructor() { }

    ngOnInit() {
    }
    hello() {
        $.get( 'http://localhost:3000/posts/hello' ,{"hello":"ok"},function(data){
            console.log(data);
        });
    }
    printval(){
        console.log(this.val);
    }

}
